home *** CD-ROM | disk | FTP | other *** search
/ MacWarehouse Macintosh Games / MacWarehouse Macintosh Games.iso / AMBER demo / ROXY / ROXY.dxr / 00969_Headgear off.ls < prev    next >
Encoding:
Text File  |  1996-10-18  |  456 b   |  13 lines

  1. on mouseDown
  2.   global oStoryteller, oPuppeteer, gFreezeInventory, gOriginPoint
  3.   if (getState(oStoryteller, #itemInUse) = #none) and (gFreezeInventory = 0) and (getState(oStoryteller, #AMBERVISION) <> #startingUp) then
  4.     if getState(oStoryteller, #endGame) = 1 then
  5.       set the loc of sprite 39 to point(-1000, -1000) + gOriginPoint
  6.       puppetSprite(39, 0)
  7.       useInventory(#Headgear)
  8.     else
  9.       addInventory(#Headgear)
  10.     end if
  11.   end if
  12. end
  13.